﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<MvcApplicationBindersSample.Models.Person>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	People
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>People</h2>
    <table>
        <thead>
            <tr>
                <td>First Name</td>
                <td>Last Name</td>
                <td>Age</td>
                <td></td>
            </tr>
        </thead>
        <% foreach (var item in Model) { %>
            <tr>
                <td><%: item.FirstName %></td>
                <td><%: item.LastName %></td>
                <td><%: item.Age %></td>
                <td>[ <%: Html.ActionLink("Edit", "Edit", new { id = item.PersonId }) %> ]</td>
            </tr>
        <% } %>
    </table>
    <p>
        Or you can <%: Html.ActionLink("create", "Create") %> an entry.
    </p>
</asp:Content>
